<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
// var a = [1,2,3]
// var b = [4,5] 
// var c=a.concat(b);
// console.log(c);

var div=document.createElement('div');
var h1=document.createElement('h1');
var span=document.createElement('span');
h1.innerHTML="我是标题";
span.innerHTML="xiaomi";
div.id="centaner";
h1.className="titele";
span.setAttribute("price",20);
div.appendChild(h1);
div.appendChild(span);
document.body.appendChild(div);
    </script>
</body>
</html>